<div ng-controller="FuwuCtrl" ng-init="detailAction()">
    <ul class="sui-breadcrumb">
        <li>服务代理订单</li>
        <li>{{'List'|translate}}</li>
        <span class="sui-form sui-form pull-right">

        </span>
    </ul>
    <fxdetail-tab ng-model="chosedStatus" click-tab="getDetailList()"></fxdetail-tab>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'版本名称'|translate}}</th>
                <th>{{'周期'|translate}}</th>
                <th>{{'费用'|translate}}</th>
                <th>{{'创建时间'|translate}}</th>
                <th>{{'返点'|translate}}</th>
                <th>{{'状态'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in detail_list">
                <td>{{list.fuwu_order_id}}</td>
                <td>
                    {{list.name}}
                </td>
                <td>
                    开始时间：{{list.order_cycle_start | ddtt}} <br> 
                    结束时间：{{list.order_cycle_end | ddtt}}
                </td>
                <td>{{list.payment}}</td>
                <td>
                    {{list.created_time | ddtt}}
                </td>
                <td>
                    {{(list.payment*list.proportion/100).toFixed(2)}}
                </td>
                <td>
                    <span ng-if="list.status==1">
                        <button class="sui-btn btn-primary" ng-click="shenhe(list.detail_id);">未审核</button>
                    </span>
                    <span ng-if="list.status==2">已审核</span>
                    <span ng-if="list.status==3">已结算</span>
                </td>
            </tr>
        </tbody>
    </table>
    <pager page-no="1" page-size="pageSize" total="detail_count" get-data="getDetailList(pageNo)"></pager>
</div>